package com.qige.homework.test;

import com.qige.homework.kind.Student;

import java.util.Scanner;

public class MainApp {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入学生编号：");
        String id = input.next();
        System.out.println("请输入学生姓名：");
        String name = input.next();
        System.out.println("请输入学生性别：");
        String sex = input.next();
        System.out.println("请输入学生身高：");
        double height = input.nextDouble();
        System.out.println("请输入学生年龄：");
        int age = input.nextInt();
        Student stu = new Student();
        stu.id = id;
        stu.name = name;
        stu.sex = sex;
        stu.height = height;
        stu.age = age;
        System.out.println("编号:" + stu.id);
        System.out.println("姓名:" + stu.name);
        System.out.println("性别:" + stu.sex);
        System.out.println("身高:" + stu.height);
        System.out.println("年龄:" + stu.age);
    }
}
